package com.doctor.bean;

import java.io.Serializable;

public class KnowledgeBean implements Serializable{

	/**
	 * 医学知识医疗技术目录bean
	 */
	
	private static final long serialVersionUID = 1L;	
	
	private int id;
	private int pid;
	private String dirname;
	
	private boolean isNew;  //标志是否新添加的(非服务端返回字段)
	
	public KnowledgeBean(){
		super();
	}

	public KnowledgeBean(int id, int pid, String dirname) {
		super();
		this.id = id;
		this.pid = pid;
		this.dirname = dirname;
	}
	
	public KnowledgeBean(int id, int pid, String dirname, boolean isNew) {
		super();
		this.id = id;
		this.pid = pid;
		this.dirname = dirname;
		this.isNew = isNew;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getDirname() {
		return dirname;
	}

	public void setDirname(String dirname) {
		this.dirname = dirname;
	}

	public boolean getIsNew() {
		return isNew;
	}

	public void setIsNew(boolean isNew) {
		this.isNew = isNew;
	}

	@Override
	public String toString() {
		return "KnowledgeBean [id=" + id + ", pid=" + pid + ", dirname="
				+ dirname + ", isNew=" + isNew + "]";
	}
	
	
		
	
	
}
